package com.yra.mapper;

import com.yra.domain.Product;
import com.yra.util.PageQueryUtil;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: yrq
 * @Date: Create in 8:46 2019/12/4
 */
@Repository
public interface ProductMapper {
    List<Product> productListPage(PageQueryUtil pageQueryUtil);

    int getTotalProduct(PageQueryUtil pageQueryUtil);

    Product productById(int id);

    void insertProduct(Product product);

    void updateProduct(Product product);

    List<Product> queryProductByIds(int[] ids);
}
